import {Given, When, Then} from 'cypress-cucumber-preprocessor/steps';


Given('I open Game', () => {
	cy.visit('/')
})

Then(`I see {string} in the title`, (title) => {
	cy.title().should('include', title)
})

// When('input {int}', function (number) {
// 	cy.intercept('GET', '/number/3', {fixture: 'fizz.json'})
// 	cy.findByText(/3/).click();
// });
//
// Then(`I see {string}`, (expected) => {
// 	cy.findByTestId('equal').click();
// 	cy.findByTestId('result').should('contain', expected);
// })
//
Given(`click {string} button`, function (buttonText) {
	cy.findByText(buttonText).click();
});
Then(`I see {string}`, function (expected) {
	cy.findByTestId('result').should('contain', expected);
});
